﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using AmazonGlacierGUI.UI.Infrastructure.MVVMFramework;
using AmazonGlacierGUI.UI.ViewModels;

namespace AmazonGlacierGUI.UI.Views
{
    /// <summary>
    /// Interaction logic for SettingsView.xaml
    /// </summary>
    public partial class SettingsView : Window
    {
        public SettingsView()
        {
            InitializeComponent();
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            Framework.BindViewModel(this, new SettingsViewModel());

        }

        private void lblCheckForUpdates_MouseUp(object sender, MouseButtonEventArgs e)
        {

            Process.Start("http://www.priyan.in/AppUpdates/?App=AmazonGlacierGUI&ver=" +
                          Assembly.GetEntryAssembly().GetName().Version.ToString());
        }

    }
}
